#pragma once
#include "CState.h"
#include "CSingleton.h"
namespace Framework
{
	class CStateManagerment:public CSingleton<CStateManagerment>
	{
		friend class CSingleton<CStateManagerment>;
	public:
		CState* GetCurrentState(){return m_pCurrentState;}
		void Update(bool isPause);
		void SwitchState(CState* nextState);
	private:
		CStateManagerment():m_pCurrentState(0),m_pNextState(0){}
		CState* m_pCurrentState;
		CState* m_pNextState;
	};
}
